##########################################
## Copyright 2012-2013 Ceruti Francesco
##
##
## This file is part of LiSP (Linux Show Player).
##
## LiSP (Linux Show Player) is free software: you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## LiSP (Linux Show Player) is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public License
## along with LiSP (Linux Show Player).  If not, see <http://www.gnu.org/licenses/>.
##########################################


class Plugin:

    PLUGIN_NAME = 'NoName'  # Plugin name

    def __init__(self, main):
        pass

    def reload(self):
        '''When a program is loaded this method is called'''

    def reset(self):
        '''Reset the plugin'''

    def getData(self):
        '''If implemented, it must return a dictionary of data.
        For example: {'trigger': 'play', 'action': callable}'''

    def setData(self, conf):
        '''The data returned with saveData() will be passed here when a program is loaded'''
